﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Cms/Admin.Master" AutoEventWireup="true"
    CodeBehind="CustomerMan.aspx.cs" Inherits="Aij1.Cms.CustomerMan" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Xpo.v13.1.Web, Version=13.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Xpo" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PH" runat="server">
    <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" DataSourceID="XpoDataSource1"
        KeyFieldName="Oid" Width="100%">
        <Columns>
            <dx:GridViewCommandColumn VisibleIndex="0"  Caption="操作"
                Width="40px">
                <DeleteButton Text="删除" Visible="True">
                </DeleteButton>
            </dx:GridViewCommandColumn>
            <dx:GridViewDataTextColumn Caption="编号" FieldName="Oid" ReadOnly="True" VisibleIndex="1"
                Width="40px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="系统名称" FieldName="SysName" VisibleIndex="3" Width="100px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="昵称" FieldName="TrueName" VisibleIndex="4" Width="100px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="电话" FieldName="Tel" VisibleIndex="5" Width="100px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="手机" FieldName="Mobile" VisibleIndex="6" Width="100px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="Email" VisibleIndex="7" Width="200px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="QQ" VisibleIndex="8" Width="100px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataDateColumn Caption="出生日期" FieldName="Birth" VisibleIndex="9" Width="70px">
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataTextColumn Caption="性别" FieldName="Gender" VisibleIndex="10" Width="30px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="地址" FieldName="Location" VisibleIndex="12" Width="200px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="登录次数" FieldName="LoginTimes" VisibleIndex="13"
                Width="30px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataDateColumn Caption="上次登录" FieldName="LastLoginTime" VisibleIndex="14"
                Width="70px">
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataDateColumn Caption="注册时间" FieldName="RegisterTime" VisibleIndex="15"
                Width="70px">
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataTextColumn Caption="收货地址" FieldName="ReceiveAddr" VisibleIndex="18"
                Width="100px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="IsVip" Caption="Vip" VisibleIndex="19" Width="30px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="IsEnt" Caption="Ent" VisibleIndex="20" Width="30px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="QQ等级" FieldName="Level" VisibleIndex="21" Width="30px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="国家" FieldName="CountryCode" VisibleIndex="22"
                Width="30px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="省" FieldName="ProvinceCode" VisibleIndex="23"
                Width="30px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="市" FieldName="CityCode" VisibleIndex="24" Width="30px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="Head" VisibleIndex="28" Width="40px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataImageColumn Caption="图像" FieldName="FigureUrl" VisibleIndex="2" Width="24px">
                <PropertiesImage ImageHeight="20px" ImageWidth="20px">
                </PropertiesImage>
            </dx:GridViewDataImageColumn>
            <dx:GridViewDataTextColumn Caption="说明" FieldName="Comment" VisibleIndex="29" Width="200px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="联系方式" FieldName="Contact" VisibleIndex="30" Width="200px">
            </dx:GridViewDataTextColumn>
            <dx:GridViewCommandColumn Caption="操作" VisibleIndex="31" Width="120px">
                <EditButton Text="编辑" Visible="True">
                </EditButton>
                <NewButton Text="新建" Visible="True">
                </NewButton>
                <DeleteButton Text="删除" Visible="True">
                </DeleteButton>
                <CancelButton Text="取消" Visible="True">
                </CancelButton>
                <UpdateButton Text="保存" Visible="True">
                </UpdateButton>
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dx:GridViewCommandColumn>
        </Columns>
        <SettingsPager PageSize="20">
        </SettingsPager>
        <Settings ShowHorizontalScrollBar="True" />
        <Templates>
            <DetailRow>
                <dx:ASPxGridView ID="detailGrid" runat="server" DataSourceID="XpoDataSource2" KeyFieldName="Oid"
                    Width="600px" OnBeforePerformDataSelect="detailGrid_DataSelect">
                    <Columns>
                        <dx:GridViewDataColumn FieldName="Oid" Caption="编号" VisibleIndex="1" />
                        <dx:GridViewDataColumn FieldName="TrueName" Caption="姓名" VisibleIndex="2" />
                        <dx:GridViewDataColumn FieldName="Gender" Caption="性别" VisibleIndex="3" />
                        <dx:GridViewDataDateColumn FieldName="Birth" Caption="生日" VisibleIndex="4" />
                    </Columns>
                </dx:ASPxGridView>
            </DetailRow>
        </Templates>
        <SettingsDetail ShowDetailRow="True" />
        <SettingsBehavior ConfirmDelete="True" EnableRowHotTrack="True" />
    </dx:ASPxGridView>
    <dx:XpoDataSource ID="XpoDataSource1" runat="server" DefaultSorting="LastLoginTime DESC"
        TypeName="Aij1.Model.C_Customer">
    </dx:XpoDataSource>
    <dx:XpoDataSource ID="XpoDataSource2" runat="server" DefaultSorting="Oid" TypeName="Aij1.Model.C_Child">
    </dx:XpoDataSource>
</asp:Content>
